<?php

namespace app\topics\controller;

class TagsController extends \app\topics\controller\TopicsController {

    public $noLogin = true;
    protected $_middle = 'topics/Tags';

    public function index() {
        target($this->_middle, 'middle')->meta()->data()->export(function ($data) {
            $this->assign($data);
            $this->assign('page', $this->htmlPage($data['pageData']['raw'], $data['pageParams']));
            $this->topicsDisplay();
        }, function ($message, $code, $url) {
            $this->errorCallback($message, $code, $url);
        });
    }

}